<?php

use Elite\Infrastructure\Server\Listener\Listener;

class OnMessageListener extends Listener {

    public function event() : string {
        return 'message';
    }

    public function callback() {
        $server = func_get_arg(0);
        $frame = func_get_arg(1);
        (new WebBootstrap())->startWs($this->swoole, $frame);
    }

}